<?php
require_once 'global.php';

if ($_SERVER['PATH_INFO']) {
    $data = explode("/", $_SERVER['PATH_INFO']);
}

$views  = 'shopcar/checkout.html';
$fun    = 'checkOut';

if ($data[1] == 'gift') {
    $views = 'shopcar/checkout_gc.html';
    $fun = 'checkout_gc';
}

$Controller =& getController('shopcar');
$View = $Controller->getView($fun);
$View->display($views);
?>
